package com.zijin.exec;

import java.util.Arrays;

public class Text02 {
    public static void main(String[] args) {
        String[] strings = {"h","e","l","l","o"};
        System.out.println(Arrays.toString(strings));
        int v = 0;
        int c = 0;
        for(int i = 0;i<strings.length;i++) {
            if (strings[i]=="a" || strings[i]=="e" || strings[i]=="i" || strings[i]=="o" || strings[i]=="u"){
                c++;
            }else{
                v++;
            }
        }
        System.out.println("元音字母为"+c);
        System.out.println("辅音字母为"+v);
    }
}
